/*
 * DLNode.cpp
 *
 *  Created on: Mar 10, 2014
 *      Author: Anthony Varghese
 */

#include <cstddef>
#include "DLNode.h"

namespace lab6 {

DLNode::DLNode(): data(0), next(nullptr), prev(nullptr) {
}

DLNode::DLNode(int d): data(d), next(nullptr), prev(nullptr) {
}

DLNode::DLNode(int d, DLNode* n, DLNode* p) : data(d), next(n), prev(p){
}

DLNode::~DLNode() {
	delete next;
}

} /* namespace lab6 */
